package com.scau.classOnline.dao;

import com.scau.classOnline.entity.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Course record);

    Course selectByPrimaryKey(Integer id);

    List<Course> selectAll();

    int updateByPrimaryKey(Course record);

    int updateTotalByPrimaryKey(Integer id);

    List<Course> selectByPages(@Param("start") Integer start,@Param("count") Integer count);

    List<Course> selectByTitle(String title);

    List<Course> selectByTeacherId(Integer tid);

    int setFinishedById(Course record);

}